<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        //typeof对number、string、boolean、null、undefined、object［对象］）的判断
        console.log("测试number:" + typeof 1);
        console.log("测试string:" + typeof "str");
        console.log("测试false:" + typeof false);
        console.log("测试null:" + typeof null);
        console.log("测试undefined:" + typeof undefined);
        console.log("测试Object:" + typeof new Object());
        console.log("测试Object:" + typeof new Set());
        console.log("测试Object:" + typeof new Map());
        // 测试string:string
        // 测试false:boolean
        // 测试null:object
        // 测试undefined:undefined
        // 测试Object:object
    </script>
</body>

</html>